<div class="pageContent">
    <form class="pageForm required-validate" method="post" action="${rc.getContextPath()}/manage/moveType/saveMoveType"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent" >
            <input type="hidden" name="navTabId" value="${navTabId!''}">
            <input type="hidden" name="id" value="${moveType.moveTypeCode}">
            <fieldset>
                <dl class="nowrap">
                    <dt>移动类型编号：</dt>
                    <dd>
                        <input name="moveTypeCode" value="${moveType.moveTypeCode}" 
                              size="22" type="text" maxlength="20" class="required  alphanumeric toUp" warn="移动类型编号已存在"
                              <#if pattern!="add">
                              readonly="readonly"
                              <#else>
                              remote="${rc.getContextPath()}/manage/moveType/validateMoveTypeCode"
                             </#if>
                        />
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt>移动类型描述：</dt>
                    <dd>
                        <input name="moveTypeText"
                            value="${moveType.moveTypeText}"
                            size="22" type="text" maxlength="60" class="required" 
                            <#if "view" == pattern>
                              readonly="readonly"
                            </#if>
                          />
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt>操作方向：</dt>
                    <dd>
                        <select 
                        <#if "view" == pattern || moveTypeUsed == true>
                        disabled="disabled"
                        </#if>
                        name="moveDirectionECode">
                            <#list eCodes as eCode>
                                <option 
                                <#if eCode.eCode == moveType.moveDirectionECode>
                                selected="selected"
                                </#if>
                                value="${eCode.eCode}" >${eCode.eCodeText}</option>
                            </#list>
                        </select>
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dt>&nbsp;</dt>
                    <dd>
                        <label><input type="checkbox" name="lockFlag" value="1"
                            <#if "view" == pattern>
                            disabled="disabled"
                            </#if>
                            <#if moveType.lockFlag == 1>
                            checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if moveType??>
            <#assign createInfo=moveType>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                <#if pattern!="view">
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="save.B">保存</@label></button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonActiveGrey">
                            <div class="buttonContent">
                                    <button type="button" class="close"><@label key="cancel.B">取消</@label></button>
                            </div>
                        </div>
                    </li>
                <#else>
                    <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
                </#if>
            </ul>
        </div>
    </form>
</div>

